package frank.zou.fit;

import fit.Fixture;
import frank.zou.UserInfo;
import frank.zou.UserService;

public class AddUserFixture extends Fixture {
	private String name; 
	private String password; 
	
	public void name(String firstName) { 
		this.name = name; 
	}

	public void password(String password) { 
		this.password = password; 
	}
	
	public void save() { 
		
		UserService userService = (UserService)SpringUtils.getBean("userService");
		UserInfo userInfo = new UserInfo();
		userInfo.setId(1);
		userInfo.setName("frank");
		userInfo.setPassword("pass123");
		userService.addUser(userInfo);
	}
}
